import { defineFakeRoute } from "vite-plugin-fake-server/client";
// 模拟刷新token接口
// export default
 defineFakeRoute([
    {
        url: "/business/device/monitor/v2/monitors",
        method: "get",
        response: () => {
            return {
                "code": 200,
                "msg": null,
                "result": {
                    "total": 9,
                    "data": [{
                        "id": 1,
                        "monitorName": "测试视频数据",
                        "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                    }, {
                        "id": 2,
                        "monitorName": "测试视频数据1",
                        "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                    }, {
                        "id": 3,
                        "monitorName": "测试视频数据2",
                        "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                    }, {
                        "id": 4,
                        "monitorName": "",
                        "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                    },
                     {
                        "id": 5,
                        "monitorName": "",
                        "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                    }
                , {
                    "id": 6,
                    "monitorName": "",
                    "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                }, {
                    "id": 7,
                    "monitorName": "",
                    "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                }, {
                    "id": 8,
                    "monitorName": "",
                    "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                }, {
                    "id": 9,
                    "monitorName": "",
                    "url": "https://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/mp4/xgplayer-demo-360p.mp4"
                }
            ]
                }
            }
        }
    }, {
        url: "/business/device/monitor/v2/monitor",
        method: "delete",
        response: () => {
            return {
                "code": 200,
                "msg": "删除成功",
                "result": null
            }
        }
    }, {
        url: "/business/device/monitor/v2/monitor",
        method: "post",
        response: () => {
            return {
                "code": 200,
                "msg": "添加成功",
                "result": null
            }
        }
    },
]);